import warnings
warnings.filterwarnings('ignore')

from ultralytics import YOLO

if __name__ == '__main__':
    model = YOLO('../../runs/detect/train/weights/best.pt')
    model.val(data='../../data/data.yaml',
              imgsz=640,
              batch=16,
              split='test',
              workers=8,
              device=[0,1],
              )